package com.project.dao.sys;

import java.util.List;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

import com.project.dao.BaseDao;
import com.project.entity.sys.Permissions;

/**
 * PermissionsDao
 * @author weimingsen
 *
 */
@Repository
public class PermissionsDao extends BaseDao<Permissions>{
	
	/**
	 * 获取所有
	 * @return
	 */
	@Cacheable(value="permissionsCache")
	public List<Permissions> getAll(String status){
		String hql = "FROM Permissions t WHERE t.status = ?";
		
		return super.find(hql,status);
	}
}
